FindSubStr

Note: This statement is named Find Substring in the Add Statement dialog box.

Returns the index of the first occurrence of a substring in a string. The search starts at a specified index.

Syntax

FindSubStr("FullString", "Substring", StartIndex)

Arguments

Argument Description
FullString Full string to search.
Substring Substring to search for in the full string.
StartIndex Character position in the full string to start searching for the substring.

Return value

Value Description
Value Index of the first occurrence of the substring in the string.

Example

fullString = "Quality-Centric Application Lifecycle Management"

subString = "Lifecycle Management"

index = FindSubStr(fullString, subString, 1)

PrintLn(Left(fullString, index - 1))